import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './utils/initGlobal.ts'
// @ts-ignore
import {vue3ScrollSeamless} from "vue3-scroll-seamless";
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios";

// axios.defaults.baseURL = 'http://localhost:9090';

const BASE_URL = 'https://opinionBack.Kimoiran.cn:55763'
window.BASE_URL = BASE_URL
const app = createApp(App)

app.config.globalProperties.BASE_URL = BASE_URL

app.use(store).use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.component('vue3ScrollSeamless',vue3ScrollSeamless)

app.mount('#app')
